package com.ruoyi.api.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class ItemDTO {

    @NotNull(message = "产品ID")
    private Long productId;

    @NotNull(message = "价格ID")
    private Long priceId;

    @NotNull(message = "单价")
    private BigDecimal price;

    @NotNull(message = "数量")
    private Integer num;

}
